Practice problem 1.1 of electric machinery